import Vue from "vue";
import VueRouter from "vue-router";

// 引入组件
import Pay from "./components/tianchang/Pay.vue";
import Query from "./components/tianchang/Query.vue";

import Hello from "./components/HelloWorld.vue";
import PayOk from "./components/tianchang/PayOk.vue";
import PayError from "./components/tianchang/PayError.vue";
import Index from "./components/tianchang/Index.vue";
import Queryrs from "./components/tianchang/Queryrs.vue";

//
import BIndex from "./components/bagua/Index.vue";
// 要告诉 vue 使用 vueRouter
Vue.use(VueRouter);

const routes = [
    {
        path:"/",
        component: Index
    },
    {
        path:"/pay",
        component: Pay
    },
    {
        path: "/hello",
        component: Hello
    },
    {
        path:"/payok",
        component:PayOk
    }, 
    {
        path:"/payerror",
        component:PayError
    },
    {path:"/query",component:Query},
    {path:"/queryrs",component:Queryrs},
    {path:"/bindex",component:BIndex},
]

var router =  new VueRouter({
    routes
})
export default router;